﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;
using System.Data;

public partial class Employee_GenerateReport : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = "Generate Report | Nexus-Z Auto Rental";
        if (Session["role"] == null)
        {
            Response.Redirect("~/Default.aspx");
        }
        SqlDataSource1.SelectCommand = "select * from report where start_date>='" + TextBox1.Text + "' and return_Date<='" + TextBox2.Text + "';";
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       
    }
}